<?php
	function validate(){
		global $aErrores;
		if(empty($_POST['subcategory_name_1'])){
			$aErrores['subcategory_name_1'] = 'Complete nombre 1';
		}
		if(empty($_POST['subcategory_name_2'])){
			$aErrores['subcategory_name_2'] = 'Complete nombre 2';
		}
		return empty($aErrores);
	}
?>